package com.zmn.oms.dubbo.interfaces.zmn.normal.erp;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.dubbo.dto.zmn.erp.OrderOnTimeDRO;
import com.zmn.oms.dubbo.dto.zmn.erp.QuotationPerformanceDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;

/**
 * @author sunlife
 * @date:2021/1/18 11:09 上午
 * description:
 */
@Api("ERP所需的绩效相关指标接口")
public interface ErpPerformanceListRemoteService {

    @ApiOperation(
            value = "获取计价器相关指标",
            response = ResponseDTO.class,
            tags = {"算账信息"})
    ResponseDTO<QuotationPerformanceDRO> getQuotationPerformance(@ApiParam("订单号") @NotNull(message = "订单号不能为空") Long orderId, @ApiParam("工单号") @NotNull(message = "工单号不能为空") Long workId);


    @ApiOperation(
            value = "获取准时上门相关指标",
            response = ResponseDTO.class)
    ResponseDTO<OrderOnTimeDRO> getOnTimePerformance(@ApiParam("订单号") @NotNull(message = "订单号不能为空") Long orderId, @ApiParam("工单号") @NotNull(message = "工单号不能为空") Long workId);

}
